home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Container / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-04-25  |  2.7 KB  |  83 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef DEFINES_K
  11. #define DEFINES_K
  12.  
  13. #ifndef FWMENU_K
  14. #include "FWMenu.k"
  15. #endif
  16.  
  17. //-------------------------------------------------------------------------------------
  18. // Uncomment the following three lines, and define them appropriately!!
  19. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  20. // to be 1.  Otherwise define it to be 0.
  21. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  22. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  23. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  24. // define it to be zero.  Note that if your part is scriptable is must support
  25. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  26. #define FW_SUPPORTS_EMBEDDING 1
  27. #define FW_SUPPORTS_EXTENSIONS 0
  28. #define FW_SUPPORTS_SCRIPTING 0
  29.  
  30. //-------------------------------------------------------------------------------------
  31. // Icons ID
  32. #define kViewAsIconID            128
  33. #define kAboutIconID            130
  34.  
  35. //-------------------------------------------------------------------------------------
  36. // Frame Presentations
  37. #define kMainPresentation        "Apple:ODF:Presentation:Container:Main"
  38.  
  39. //-------------------------------------------------------------------------------------
  40. // Menus
  41. #define kMenuBar                1024
  42.  
  43. // ----- Commands -----
  44. #define cAsFrame                FW_kFirstUserCommandID
  45. #define cAsLargeIcon            cAsFrame + 1
  46. #define cAsSmallIcon            cAsLargeIcon + 1
  47. #define cAsThumbnail             cAsSmallIcon + 1
  48.  
  49. #define cZoom50                    cAsThumbnail + 1
  50. #define cZoom100                 cZoom50 + 1
  51. #define cZoom200                 cZoom100 + 1
  52.  
  53. //-------------------------------------------------------------------------------------
  54. // View resources & View IDs 
  55. #define kContainerView            1024
  56.  
  57. #define kContainerViewID        2
  58. #define kHorzScrollBarID        3
  59. #define kVertScrollBarID        4 
  60. #define kGrowBoxID                 5
  61.  
  62. //-------------------------------------------------------------------------------------
  63. // About
  64. #define kAbout                    1024
  65.  
  66. //-------------------------------------------------------------------------------------
  67. // Part Info 
  68. #define kPartInfoID                1024
  69.  
  70. //-------------------------------------------------------------------------------------
  71. // Strings
  72. #define kUndoStrings            1036
  73. #define kUndoResizeMsg              19
  74. #define kRedoResizeMsg             20
  75.  
  76. //-------------------------------------------------------------------------------------
  77. // Misc. constants
  78. #define kDrawingSizeX            1024 * 5
  79. #define kDrawingSizeY            1024 * 5
  80.  
  81.  
  82. #endif
  83.